package cn.sc.summer.daoapi.po;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.sc.summer.constant.enums.StatusEnum;
import cn.sc.summer.mybatis.model.BaseTenantModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 类名：路由信息
 *
 * @author a-xin
 * @date 2023/9/8 13:07
 */
@Data
@Accessors(chain = true)
@TableName(value = "sys_route")
@EqualsAndHashCode(callSuper = true)
public class SysRoute extends BaseTenantModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 父级ID
     */
    private String pId;

    /**
     * 左值
     */
    private Integer lft;

    /**
     * 右值
     */
    private Integer rgt;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 菜单编码
     */
    private String code;

    /**
     * 菜单路由地址
     */
    private String route;

    /**
     * 是否开启
     *
     * @see StatusEnum
     */
    private Integer open;

    /**
     * 优先级别
     */
    private Integer priority;

}
